package com.meshnetics.gb.stack.mac.type;

import com.meshnetics.gb.type.impl.custom.FiniteEnumerationElement;

/**
 * The reason of synchronization being lost. Used in MACSyncLossIndication.
 *
 * @author AKovylin
 */
public class SyncLossReason extends FiniteEnumerationElement {
    public static final SyncLossReason PAN_ID_CONFLICT =
            new SyncLossReason(TypeSyncLossReason.TYPE, 0xee, "PAN_ID_CONFLICT");
    public static final SyncLossReason REALIGNMENT =
            new SyncLossReason(TypeSyncLossReason.TYPE, 0xef, "REALIGNMENT");
    public static final SyncLossReason BEACON_LOSS =
            new SyncLossReason(TypeSyncLossReason.TYPE, 0xe0, "BEACON_LOSS");

    SyncLossReason(TypeSyncLossReason type, long value, String name) {
        super(type, value, name);
    }
}
